﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Medical.EntityType;

namespace Sector7.Medical.Events
{
    /// <summary>
    /// 加载病人完成委托事件
    /// </summary>
    /// <param name="obj"></param>
    /// <param name="e"></param>
    public delegate void PatientLoadedEventHandler(object obj, PatientLoadedEventArgs e);

    /// <summary>
    /// 加载病人完成事件参数
    /// </summary>
    public class PatientLoadedEventArgs : EventArgs
    {
        #region Accessor

        /// <summary>
        /// 获取是否加载成功
        /// </summary>
        public bool IsSuccess
        {
            get { return m_isSuccess; }
        }

        /// <summary>
        /// 获取病人信息
        /// </summary>
        public M7_Patient Patient
        {
            get { return m_patient; }
        }

        #endregion

        #region Structure

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="isSuccess"></param>
        /// <param name="patient"></param>
        public PatientLoadedEventArgs(bool isSuccess, M7_Patient patient)
        {
            m_isSuccess = isSuccess;
            m_patient = patient;
        }
        #endregion

        #region Inner members

        /// <summary>
        /// 是否加载成功
        /// </summary>
        private bool m_isSuccess;

        /// <summary>
        /// 病人信息
        /// </summary>
        private M7_Patient m_patient;

        #endregion
    }
}
